{% load ex_filters %}
{% for chpt in all %}
<h2>{{chpt.parent.identifier}} {{chpt.parent.name}}</h2>
	{% for child in chpt.children %}
		<h3><a href="/chapter/{{child.p.identifier}}">{{child.p.identifier}} {{child.p.name}}</a></h3>
		{% for childc in child.c %}
			<span>    </span><li>{{childc.identifier}} {{childc.name}}</li>
		{% endfor %}
	{% endfor %}
{% endfor %}